<?php
class HTTP_RESQUEST{
	
	static function exist($name){
		return HTTP_RESQUEST::param($name)!=null;
	}
	static function  post($name){
		$value=null;
		if(isset($_POST[$name])){
			$value= $_POST[$name];
		}
		return $value;
	}
	
	static function get($name){
		$value=null;
		if(isset($_GET[$name])){
			$value= $_GET[$name];
		}
		return $value;
	}
	
	static function  param($name){
		$value=HTTP_RESQUEST::get($name);
		if(!isset($value)){
			$value= HTTP_RESQUEST::post($name);
		}
		return $value;
	}
	
}
?>